﻿<Window x:Class="CakeWPF.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    Title="Cake - Character Animation Kickass Editor" Height="Auto" Width="Auto"
        Loaded="Window_Loaded" Icon="/CakeWPF;component/CakeAppIcon.png">
    <DockPanel>
        <Menu Name="MenuBar" DockPanel.Dock="Top">
            <MenuItem Header="_File">
                <MenuItem Header="_Open" IsCheckable="true"/>
                <MenuItem Header="_Close" IsCheckable="true"/>
                <MenuItem Header="_Save" IsCheckable="true"/>
                <Separator />
                <MenuItem Header="E_xit" Click="MenuItemExit_Click"/>
            </MenuItem>
        </Menu>
        <StatusBar Name="StatusBar" DockPanel.Dock="Bottom">
            <StatusBarItem>
                <TextBlock Name="statusText">Load or create a project to begin.</TextBlock>
            </StatusBarItem>
        </StatusBar>
        <ScrollViewer>
            <StackPanel DockPanel.Dock="Left" MaxWidth="200">

                <Label Background="LightBlue" Margin="0,5,0,0" BorderBrush="Blue" BorderThickness="2">Working dir</Label>
                <TextBox Background="LightBlue" Name="AnimDirValue" TextChanged="AnimDirValue_TextChanged"></TextBox>
                <Button Background="LightBlue" Name="OpenProject" Click="OpenProject_Click">Load Project</Button>
                <Button Background="LightBlue" Name="SaveProject" Click="SaveProject_Click">Save Project</Button>

                <Label Background="PaleGoldenrod" Margin="0,5,0,0" BorderBrush="Orange" BorderThickness="2">Animations</Label>
                <ListView Background="PaleGoldenrod" BorderBrush="Orange" BorderThickness="1"  Name="AnimationList" SelectionChanged="AnimationList_SelectionChanged" MinHeight="30"></ListView>
                <Button Background="PaleGoldenrod" Name="SaveAnimationButton" Click="SaveAnimationButton_Click">Save</Button>
                <Button Background="PaleGoldenrod" Name="SaveAsAnimationButton" Click="SaveAsAnimationButton_Click">Save as...</Button>
                
                <Label Background="PaleGoldenrod" Margin="0,5,0,0" BorderBrush="Orange" BorderThickness="2">Preview list</Label>
                <Button Background="PaleGoldenrod" Name="PreviewAnimAddButton" Click="PreviewAnimAddButton_Click">Add animation</Button>
                <Button Background="PaleGoldenrod" Name="PreviewAnimClearButton" Click="PreviewAnimClearButton_Click">Clear preview list</Button>                
                <ListView Background="PaleGoldenrod" BorderBrush="Orange" BorderThickness="1"  Name="AnimationPreviewList" MinHeight="30"></ListView>
                
                <Label Background="PaleGreen" Margin="0,5,0,0" BorderBrush="Green" BorderThickness="2">Rig</Label>
                <TreeView Background="PaleGreen" Name="RigView" BorderBrush="Green" MinHeight="30" SelectedItemChanged="RigView_SelectedItemChanged"  />

                <Label Background="Turquoise" Margin="0,5,0,0" BorderBrush="Orange" BorderThickness="2">Settings</Label>
                <CheckBox Background="Turquoise" BorderBrush="Orange" BorderThickness="1"  Name="FilterCheckbox" Click="FilterCheckbox_Checked" >Selection Filter</CheckBox>
                <CheckBox Background="Turquoise" BorderBrush="Orange" BorderThickness="1"  Name="LoopCheckbox" Click="LoopCheckbox_Checked" >Loopable animation</CheckBox>
            </StackPanel>
        </ScrollViewer>
        <DockPanel DockPanel.Dock="Right" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <TabControl DockPanel.Dock="Top" Background="Orange" SelectionChanged="TabControl_SelectionChanged" Name="EditorTabControl">
                <TabItem Name="AnimationEditorTab" Header="Animation editor" Background="PaleGoldenrod"></TabItem>
                <TabItem Name="AnimationGraphEditorTab" Header="Animation graph editor" Background="LightBlue"></TabItem>
                <TabItem Name="RigEditorTab" Header="Rig editor" Background="PaleGreen"></TabItem>
            </TabControl>
            <WindowsFormsHost HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <wf:Panel x:Name="RenderPanel"/>
            </WindowsFormsHost>
        </DockPanel>
    </DockPanel>
</Window>